package com.ltu.timkor6.gamesite.games.towerofhanoi.client;

import com.google.gwt.dom.client.Element;
import com.google.gwt.i18n.shared.DirectionEstimator;
import com.google.gwt.user.client.ui.Label;

public class Cell extends Label
{
	private boolean isAtTop = false;
	private int column;
	private int row;
	private int size;
	
	public Cell()
	{
		super("");
	}

	public Cell(int number)
	{
		super(String.valueOf(number));
		this.size = number;
	}

	public Cell(int number, int row, int column)
	{
		super(String.valueOf(number));
		this.size = number;
		this.row = row;
		this.column = column;
	}

	public Cell(String text)
	{
		super(text);
	}

	public Cell(String text, int row, int column)
	{
		super(text);
		this.row = row;
		this.column = column;
	}

	public Cell(Element element)
	{
		super(element);
	}

	public Cell(String text, Direction dir)
	{
		super(text, dir);
	}

	public Cell(String text, DirectionEstimator directionEstimator)
	{
		super(text, directionEstimator);
	}

	public Cell(String text, boolean wordWrap)
	{
		super(text, wordWrap);
	}
	
	public int getColumn()
	{
		return this.column;
	}
	
	public int getRow()
	{
		return this.row;
	}
	
	public int getSize()
	{
		return this.size;
	}
	
	public boolean isAtTop()
	{
		return this.isAtTop;
	}
	
	public void setAtTop(boolean isAtTop)
	{
		this.isAtTop = isAtTop;
	}
	
	public void setColumn(int index)
	{
		this.column = index;
	}
	
	public void setRow(int index)
	{
		this.row = index;
	}
}
